<?php
session_start();
/**
* @package		ReservatieComponent voor ouderavonden van Atheneum Alicebourg Lanaken.
* @copyright	Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		1.0
* @license		GNU/GPL, see LICENSE.php
**/
include ("../../include/header.php");
?>

<head>
<link rel="stylesheet" href="../../css/template_css.css" type="text/css"/> 
</head>
<body>
<div align="center"><img src="<?php echo "../$logo" ; ?>" /><br><br>
<p><a href="../index.php"><img src="<?php echo "../$home" ; ?>" border="0"></a></p><br><br>

<p>
  <?php 

include ("../../include/config.php");
require_once ("../../include/db.php");
include ("../../include/header.php");

if(isset($_SESSION['myusername'])){
	if ($_SESSION['admin'] == "$adminid") {
?>
</p>
<?php
$sql = "SELECT * FROM $tbdate";
$result = mysql_query($sql);
?>
 <table width="100%" border="0" class="moduletable-latest">
 
<?php
while ($row = mysql_fetch_array($result)){
	$date = $row['date'];
	$id = $row['ID'];
	?>
 <tr>
 <td><?php echo "$date" ; ?></td>
 <td><a href="datedel.php?id=<?php echo "$id" ; ?>">Verwijder datum</a></td>
 </tr>
 <?php
  }
 ?>
 </table>
 
 <p>&nbsp;</p>
 <form name="form1" method="post" action="dateprocess.php">
  <table width="100%" border="0" class="moduletable-latest">
    <tr>
      <td>Datum toevoegen: <br>
        (dd-mm-jjjj) </td>
      <td><input name="datum" type="text" id="datum">
         <input name="Toevoegen" type="submit" id="Toevoegen" value="Toevoegen"></td>
    </tr>
  </table>
  <p>&nbsp;</p>
  </form>
<p>&nbsp;</p>
</div>
<?php
}}
?>
</body>
